//
//  UserBean.h
//  IMTMonitor
//
//  Created by jun on 2019/12/31.
//  Copyright © 2019 itoc. All rights reserved.
//

#import <Foundation/Foundation.h>



@interface UserBean : NSObject<NSCoding>

@property (nonatomic , assign) BOOL loginStatus;


@property (nonatomic , copy) NSString *userId;
@property (nonatomic , copy) NSString *userName;
@property (nonatomic , copy) NSString *nickName;
@property (nonatomic , copy) NSString *phonenumber;
@property (nonatomic , copy) NSString *avatar;


+ (UserBean *)shareUser;
//检查用户是否登录
+ (BOOL)isLogin;
//清楚资料
+ (void)clearUserData;
//保存用户信息
+ (void)uploadUserData:(NSDictionary *)data;

//+ (void)saveUserData;

@end


